#ifndef LINK_H
#define LINK_H
struct LINKnode
{

  int fd;
  char topic[32];
  struct LINKnode* next;

};

typedef struct LINKnode LINKnode ;
void createhead();
void add_link(int fd,const char*topic);
void real_publish(const char*topic,const char*msg,int msglen);
void delete_link(int fd);


#endif


